Changing attribute of all table cells in module

Hi,

I have a module with hundreds of tables and even more cells. I need to find a way to modify an attribute in all of the table cells at once.

Currently, all table cells have an attribute "IsRequirement" set to TRUE. I need to flip it to FALSE.

I tried the following script but it results in a syntax error on line 6.

Object o
 
for o in all current Module do
{
if cell(o) {
o."IsRequirement" = false
}
}

Please excuse me for my naivete as I am still very new to DXL.


DoanD - Thu Sep 21 13:11:19 EDT 2017

Re: Changing attribute of all table cells in module
PekkaMakinen - Fri Sep 22 02:36:11 EDT 2017

In DXL you have to put the logical condition for "if" inside parentheses, like this "if (cell(o))"

 

 

Re: Changing attribute of all table cells in module
Mike.Scharnow - Fri Sep 22 06:38:19 EDT 2017

PekkaMakinen - Fri Sep 22 02:36:11 EDT 2017

In DXL you have to put the logical condition for "if" inside parentheses, like this "if (cell(o))"

 

 

or use then like "if cell(o) then {".

 

 

Re: Changing attribute of all table cells in module
DoanD - Fri Sep 22 11:41:59 EDT 2017

PekkaMakinen - Fri Sep 22 02:36:11 EDT 2017

In DXL you have to put the logical condition for "if" inside parentheses, like this "if (cell(o))"

 

 

This works - thank you!